<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			window.onload = function() {
				var blue = document.getElementsByTagName("li")[1];
				var blueCopy = blue.cloneNode(true);
				var ul = document.getElementsByTagName("ul")[1];
				//ul.appendChild(blueCopy);
				var orange = document.getElementsByTagName("li")[3];
				ul.insertBefore(blueCopy, orange);
			}
		</script>
	</head>
	<body>
		<ul>
			<li>red</li>
			<li>blue</li>
			<li>green</li>
		</ul>
		<ul>
			<li>orange</li>
		</ul>
	</body>
</html>
